package com.qc.wintrax.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;

import com.qc.wintrax.BaseActivity;
import com.qc.wintrax.R;
import com.qc.wintrax.widget.CustomActionBar;

import butterknife.Bind;
import butterknife.ButterKnife;


public class SigterActivity extends BaseActivity {



    @Bind(R.id.title_home)
    CustomActionBar titleHome;
    @Bind(R.id.account_et)
    EditText accountEt;
    @Bind(R.id.authcode_et)
    EditText authcodeEt;
    @Bind(R.id.newpassword_et)
    EditText newpasswordEt;
    @Bind(R.id.password_et)
    EditText passwordEt;
    @Bind(R.id.cancle_btn)
    Button cancleBtn;
    @Bind(R.id.check_box)
    CheckBox checkBox;

    /**
     * ATTENTION: This was auto-generated to implement the App Indexing API.
     * See https://g.co/AppIndexing/AndroidStudio for more information.
     */

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sigter);
        ButterKnife.bind(this);
    }

    public void setBar() {
        titleHome.setRightImageVisibility(View.GONE);
        titleHome.setRightTextView("注册");
        titleHome.setTextViewVisibility(View.GONE);
        titleHome.setLeftImageResource(R.mipmap.back_icon);
        titleHome.setOnRightTextClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(context, SigterActivity.class);
                startActivity(intent);
            }
        });
        titleHome.setOnLeftImageClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }

    @Override
    public void onStart() {
        super.onStart();

    }

    @Override
    public void onStop() {
        super.onStop();

    }
}